import http from '@/api/index'

/* 分页查询 */
export function selectByPage (http, params) {
  return http.get('/depository/list', params)
}
/* 查询全部 */
export function selectAll () {
  return http.get('/depository/list?selectAll=' + true)
}
/* 新增 */
export function insert (data) {
  return http.post('/depository', data)
}
/* 修改 */
export function update (data) {
  return http.put('/depository', data)
}
/* 删除 */
export function remove (id) {
  return http.delete('/depository/' + id)
}
